package com.hulk.ratel.persistence.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.hulk.ratel.persistence.entity.SuperEntity;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author hulk
 * @since 2021-03-13
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_partner_info")
public class PartnerInfo extends SuperEntity<PartnerInfo> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("partner_no")
    private String partnerNo;

    @TableField("partner_name")
    private String partnerName;

    /**
     * 01-1级 02-2级
     */
    @TableField("partner_grade")
    private String partnerGrade;

    @TableField("partner_intro")
    private String partnerIntro;

    /**
     * XML,JSON
     */
    @TableField("serialization_mode")
    private String serializationMode;

    /**
     * Y-启用 N-关闭
     */
    @TableField("use_flag")
    private String useFlag;

    @TableField("group_code")
    private String groupCode;

    /**
     * T0-当日 T1-隔日 D0-当日(包含节假日) D1-隔日(包含节假日)
     */
    @TableField("arrive_mode")
    private String arriveMode;

    /**
     * DIRECT-直清 SECOND-二清
     */
    @TableField("clearing_mode")
    private String clearingMode;

    /**
     * PARTNER-以合作者的范围进行统一标准分润  MERCHANT-以合作者下的每个商户不同的标准分润
     */
    @TableField("share_mode")
    private String shareMode;

    @TableField("contact_name")
    private String contactName;

    @TableField("contact_mobile")
    private String contactMobile;

    @TableField("contact_phone")
    private String contactPhone;

    @TableField("contact_fax")
    private String contactFax;

    @TableField("contact_email")
    private String contactEmail;

    @TableField("f_linkman_name")
    private String fLinkmanName;

    @TableField("f_linkman_phone")
    private String fLinkmanPhone;

    @TableField("f_linkman_fax")
    private String fLinkmanFax;

    @TableField("f_linkman_email")
    private String fLinkmanEmail;

    @TableField("remark")
    private String remark;

    @TableField("start_date")
    private LocalDate startDate;

    @TableField("expiry_date")
    private LocalDate expiryDate;

    @TableField("created_by")
    private String createdBy;

    @TableField(value = "created_time", fill = FieldFill.INSERT)
    private LocalDateTime createdTime;

    @TableField("audited_time")
    private LocalDateTime auditedTime;

    /**
     * N-未审核Y-已审核U-已修改
     */
    @TableField("audited_flag")
    private String auditedFlag;

    @TableField("audited_by")
    private String auditedBy;

    @TableField("updated_by")
    private String updatedBy;

    @TableField(value = "updated_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedTime;

    @TableField("ori_id")
    private String oriId;

    @TableField("tenant_id")
    private String tenantId;

    @TableField("rsv1")
    private String rsv1;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
